package learningThread.api.part2;

public class MyThread extends Thread{

    private int i;


    public MyThread(int i,String name){
        super(name);
        System.out.println("构造MyThread时的当前线程为:"+Thread.currentThread().getName());
        this.i = i;
    }

    @Override
    public void run() {
        System.out.println("执行MyThread时的当前线程run方法的线程:"+Thread.currentThread().getName());
        System.out.println("继承至Thread类");
    }
}
